home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dr.bub / 96000.lha / 96000 / cfft1t.asm < prev    next >
Assembly Source File  |  1992-04-28  |  2KB  |  70 lines

  1.     page 132,60,1,1
  2.     opt mex
  3. ;*******************************************
  4. ;Motorola Austin DSP Operation  28 Feb. 1992
  5. ;*******************************************
  6. ;DSP96002
  7. ;Benchmarks for EDN  :     Test for CFFT1-96
  8. ;File name: CFFT1T.asm  1024 complex number FFT
  9. ;**************************************************************************
  10. ;    Maximum sample rate:  1.0479 ms at 40.0 MHz
  11. ;    Memory Size: Prog:  141 words ; Data:  5120 words
  12. ;    Number of clock cycles:     41916 (20958 instruction cycles)
  13. ;    Clock Frequency:     40.0MHz
  14. ;    Instruction cycle time:     50.ns
  15. ;**************************************************************************
  16. ;
  17. ; CFFT1-96  Complex, Radix 2 Cooley-Tukey Decimation in Time FFT
  18. ;
  19. ;
  20. ;      normally ordered input data
  21. ;      normally ordered output data
  22. ;
  23.  
  24.  
  25.  
  26. ;****************************************************************************
  27. ; Equates Section
  28. ;****************************************************************************
  29.  
  30. RESET   equ     $00000000               ; reset isr
  31. MAIN    equ     $00000100               ; main routine
  32.  
  33. points      equ    1024 
  34. passes      equ    10 
  35. data        equ    $e00
  36. odata       equ    $2000
  37. coef        equ    $600                       ; cos and sin table 
  38. coefsize    equ    1024 
  39.  
  40. BCRA    equ     $FFFFFFFE               ; port a bus control reg
  41. BCRB    equ     $FFFFFFFD               ; port b bus control reg
  42. PSR     equ     $FFFFFFFC               ; port select reg
  43.  
  44.           include 'sincos.asm'                 ;using external cos and sin table, if use internal ROM, delete this line
  45.           include 'cfft1-96.asm'
  46.  
  47.  
  48. ;*****************************************************************************
  49. ;  1) 
  50. ;  2) all P,X,Y,I/O external acesses from port B with no wait states
  51. ;  3)      except Y:$20000000-$3FFFFFFF which is upstream DSP's aHI
  52. ;*****************************************************************************
  53.       sincos     points,coef                 ;  if use internal data ROM, delete this line
  54.  
  55.      org     p:MAIN
  56.      movep   #$0,x:BCRA              ; no wait states for portb P,X,Y,I/O
  57.      movep   #$0,x:BCRB              ; ...don't care about page fault
  58.      movep   #$00FF00FF,x:PSR        ; external X:memory on Port-B
  59.                                      ;          Y:memory on Port-A
  60.      ;bset    #$3,omr                 ; enable the internal data ROMs
  61.      bclr    #$3,omr                 ; disable the internal data ROMs
  62.  
  63.      
  64.      CFFT1  points,passes,data,coef,coefsize,odata
  65.      nop
  66.      nop
  67.      jmp   *
  68.  
  69.      END
  70.